package com.wyp168.jvm001.heap;

//import jdk.internal.org.objectweb.asm.ClassWriter;
//import jdk.internal.org.objectweb.asm.Opcodes;

/**
 * @ClassName OOMTest
 * @Description TODO
 * @Author wyp168
 * @Date 2022/8/21 22:16
 */
public class OOMTest {
    public static void main(String[] args) {
        OOMTest test = new OOMTest();
        int j = 0;
        try {
            for (int i = 0; i < 10000; i++) {
//                ClassWriter classWriter = new ClassWriter(0);
//                classWriter.visit(Opcodes.V1_8, Opcodes.ACC_PUBLIC, "ClassWW",null, "java/lang/Object", null);
//                byte[] classByte = classWriter.toByteArray();
                j ++;
            }
        } finally {
            System.out.println(j);
        }

    }
}
